/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Other Service Provider HIPAA Member3</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see org.hl7.v3.V3Package#getOtherServiceProviderHIPAAMember3()
 * @model extendedMetaData="name='OtherServiceProviderHIPAA_._member_._3'"
 * @generated
 */
public enum OtherServiceProviderHIPAAMember3 implements Enumerator {
	/**
	 * The '<em><b>171100000N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_171100000N_VALUE
	 * @generated
	 * @ordered
	 */
	_171100000N(0, "_171100000N", "171100000N"),

	/**
	 * The '<em><b>172A00000N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_172A00000N_VALUE
	 * @generated
	 * @ordered
	 */
	_172A00000N(1, "_172A00000N", "172A00000N"),

	/**
	 * The '<em><b>176P00000N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_176P00000N_VALUE
	 * @generated
	 * @ordered
	 */
	_176P00000N(2, "_176P00000N", "176P00000N"),

	/**
	 * The '<em><b>175L00000N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_175L00000N_VALUE
	 * @generated
	 * @ordered
	 */
	_175L00000N(3, "_175L00000N", "175L00000N"),

	/**
	 * The '<em><b>173000000N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_173000000N_VALUE
	 * @generated
	 * @ordered
	 */
	_173000000N(4, "_173000000N", "173000000N"),

	/**
	 * The '<em><b>175M00000N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_175M00000N_VALUE
	 * @generated
	 * @ordered
	 */
	_175M00000N(5, "_175M00000N", "175M00000N"),

	/**
	 * The '<em><b>175F00000N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_175F00000N_VALUE
	 * @generated
	 * @ordered
	 */
	_175F00000N(6, "_175F00000N", "175F00000N");

	/**
	 * The '<em><b>171100000N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>171100000N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_171100000N
	 * @model literal="171100000N"
	 * @generated
	 * @ordered
	 */
	public static final int _171100000N_VALUE = 0;

	/**
	 * The '<em><b>172A00000N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>172A00000N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_172A00000N
	 * @model literal="172A00000N"
	 * @generated
	 * @ordered
	 */
	public static final int _172A00000N_VALUE = 1;

	/**
	 * The '<em><b>176P00000N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>176P00000N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_176P00000N
	 * @model literal="176P00000N"
	 * @generated
	 * @ordered
	 */
	public static final int _176P00000N_VALUE = 2;

	/**
	 * The '<em><b>175L00000N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>175L00000N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_175L00000N
	 * @model literal="175L00000N"
	 * @generated
	 * @ordered
	 */
	public static final int _175L00000N_VALUE = 3;

	/**
	 * The '<em><b>173000000N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>173000000N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_173000000N
	 * @model literal="173000000N"
	 * @generated
	 * @ordered
	 */
	public static final int _173000000N_VALUE = 4;

	/**
	 * The '<em><b>175M00000N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>175M00000N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_175M00000N
	 * @model literal="175M00000N"
	 * @generated
	 * @ordered
	 */
	public static final int _175M00000N_VALUE = 5;

	/**
	 * The '<em><b>175F00000N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>175F00000N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_175F00000N
	 * @model literal="175F00000N"
	 * @generated
	 * @ordered
	 */
	public static final int _175F00000N_VALUE = 6;

	/**
	 * An array of all the '<em><b>Other Service Provider HIPAA Member3</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final OtherServiceProviderHIPAAMember3[] VALUES_ARRAY =
		new OtherServiceProviderHIPAAMember3[] {
			_171100000N,
			_172A00000N,
			_176P00000N,
			_175L00000N,
			_173000000N,
			_175M00000N,
			_175F00000N,
		};

	/**
	 * A public read-only list of all the '<em><b>Other Service Provider HIPAA Member3</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<OtherServiceProviderHIPAAMember3> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Other Service Provider HIPAA Member3</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OtherServiceProviderHIPAAMember3 get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			OtherServiceProviderHIPAAMember3 result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Other Service Provider HIPAA Member3</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OtherServiceProviderHIPAAMember3 getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			OtherServiceProviderHIPAAMember3 result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Other Service Provider HIPAA Member3</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OtherServiceProviderHIPAAMember3 get(int value) {
		switch (value) {
			case _171100000N_VALUE: return _171100000N;
			case _172A00000N_VALUE: return _172A00000N;
			case _176P00000N_VALUE: return _176P00000N;
			case _175L00000N_VALUE: return _175L00000N;
			case _173000000N_VALUE: return _173000000N;
			case _175M00000N_VALUE: return _175M00000N;
			case _175F00000N_VALUE: return _175F00000N;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private OtherServiceProviderHIPAAMember3(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //OtherServiceProviderHIPAAMember3
